import Vue from 'vue'
import Vuex from 'vuex'
import * as getters from './getters'
import * as actions from './actions'
import * as mutations from './mutations'

Vue.use(Vuex);
const state = {
	user: {
		token: null,
		name: '',
		auth: 0
	},
	userInfo: {
		messages: [{1: 'test', 2: 'test'}],
		notifications: [],
		tasks: []
	},
	orders:[],
	shops:{},
};

const store = new Vuex.Store({
	state,
	getters,
	actions,
	mutations
});
export default store;
